<?php
/**
 * Created by PhpStorm.
 * User: 刚
 * Date: 2017/7/28
 * Time: 13:49
 */
namespace app\models;

use Yii;
use yii\base\Model;

class ViewsTest extends Model
{
    public $username;
    public $password;

    public function rules()
    {
        return [
            [['username', 'password'], 'required'],

        ];
    }

    public function attributeLabels()
    {
        return [
            'username'=>'用户名'
        ];
    }
}